package br.unb.mestrado.simulator.model.simulator;

import br.unb.mestrado.simulator.model.spl.SplConfiguration;

public class SplSpecification implements Comparable<SplSpecification>{

	public enum SPL_CRITERIA{
		GOAL, MULTI_CRITERIA
	};
	
	
	private SPL_CRITERIA type;
	private Double quality;
	private SplConfiguration configuration;
	
	public Double getQuality() {
		return quality;
	}
	public void setQuality(Double quality) {
		this.quality = quality;
	}
	public SplConfiguration getConfiguration() {
		return configuration;
	}
	public void setConfiguration(SplConfiguration configuration) {
		this.configuration = configuration;
	}
	@Override
	public String toString() {
		return "SplSpecification [quality=" + quality + ", configuration="
				+ configuration + "]";
	}
	@Override
	public int compareTo(SplSpecification o) {
		if(this.getQuality()==null){
			return 0;
		}
		return this.getQuality().compareTo(o.getQuality());
	}
	public SPL_CRITERIA getType() {
		return type;
	}
	public void setType(SPL_CRITERIA type) {
		this.type = type;
	}
	
	
}
